﻿<%@ Page Title="Hỏi Đáp" Language="C#" MasterPageFile="~/sitemanagement/MasterPage.master" AutoEventWireup="true" CodeFile="Faq.aspx.cs" Inherits="sitemanagement_Faq" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="Stylesheet" type="text/css" href="css/faq.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    Thông Tin Hỏi Đáp
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="faqcontent">
        <div id="faqinfor">
            <div id="faqcate">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:DropDownList ID="ddlCate" runat="server" Width="250px" Height="30px" 
                    AutoPostBack="True" onselectedindexchanged="ddlCate_SelectedIndexChanged">
                    <asp:ListItem Text="Chưa Trả Lời" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Đã Trả Lời" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="gvFAQ" runat="server" AllowPaging="True" Width="100%" 
                            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
                            BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="FAQID" 
                            PageSize="15">
                            <Columns>
                                <asp:BoundField DataField="FAQID" HeaderText="ID Hỏi Đáp" >
                                    <ItemStyle Width="70px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FullName" HeaderText="Họ và Tên" >
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Title" HeaderText="Tiêu Đề" >
                                    <ItemStyle Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Email" HeaderText="Email" >
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Question" HeaderText="Câu Hỏi" >
                                <ItemStyle CssClass="faqquest" Width="200px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Answer" HeaderText="Trả Lời" >
                                <ItemStyle Width="200px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="DateQuestion" HeaderText="Ngày Hỏi" >
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Thao Tác">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" Text="Chọn" CommandName="Select" CommandArgument='<%# Eval("FAQID") %>'></asp:LinkButton>
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="LinkButton2" runat="server" Text="Xóa" CommandName="Remove" CommandArgument='<%# Eval("FAQID") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="110px" />
                                </asp:TemplateField>
                            </Columns>

                            <PagerStyle HorizontalAlign="Left"></PagerStyle>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" Height="30px" VerticalAlign="Middle" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <RowStyle ForeColor="#000066" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                            <SortedAscendingHeaderStyle BackColor="#007DBB" />
                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                            <SortedDescendingHeaderStyle BackColor="#00547E" />
                            <RowStyle VerticalAlign="Middle" CssClass="itemborder" />
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlCate" />
                    </Triggers>
                </asp:UpdatePanel>
                <div style="clear: both"></div>
        </div>
        <div id="faqanswer">
            <table width="100%">
                <tr>
                    <td class="faqname"></td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>

